﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SystemUpdatesCore.Server
{
    public interface IServer
    {

        /// <summary>
        /// 获取当前版本号
        /// 尝试所有配置的URL
        /// </summary>
        /// <param name="systemName"></param>
        /// <returns></returns>
        Task<string> GetVersionNum(string systemName);


        /// <summary>
        /// 获取当前版
        /// 尝试所有配置的URL
        /// </summary>
        /// <param name="systemName"></param>
        /// <returns></returns>
        Task<ServerVersionModel> GetVersion(string systemName);
        


    }
}
